package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduComment;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author testjava
 * @since 2022-10-22
 */
public interface EduCommentService extends IService<EduComment> {

    //1.分页根据课程id查询课程评论的方法
    Map<String, Object> getCourseRemark(Page<EduComment> pageParam, String courseId);
    //2.添加评论的方法
    void saveComment(EduComment eduComment);

}
